package com.itheima.service;

import com.itheima.domain.Permission;
import com.itheima.domain.Role;

import java.util.List;

/**
 * ClassName:RoleService
 * Package:com.itheima.service
 * Description:
 * Date:2020/3/1215:08
 * User: snow
 */
public interface RoleService {

	public List<Role> findAll() throws Exception;

	public void save(Role role) throws Exception;

	public Role findById(String roleId) throws Exception;

	public List<Permission> findOtherPermission(String roleId) throws Exception;

	public void addPermissionToRole(String roleId, String[] permissionIds) throws Exception;
}
